const { defineConfig } = require('@vue/cli-service')
// 导入node的path方法
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        // 使用node的path方法拼接一下全部地址
        path.join(__dirname, './src/styles/var.less')
      ]
    }
  },
  devServer: {
    allowedHosts: ['www.corho.com']
  }
})
